package speed2010.andreza.vspeed;

import java.awt.Frame;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import speed2010.andreza.vspeed.gui.ISPEEDGUI;
import speed2010.andreza.vspeed.integration.CommunicationManager;
import speed2010.andreza.vspeed.util.SwingUtils;


public class VSPEED {

	public static void main(final String[] args) {
		SwingUtils.setLookAndFeel();
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				try {
					CommunicationManager.getInstance().init();
					final ISPEEDGUI inst = new ISPEEDGUI();
					inst.setLocationRelativeTo(null);
					inst.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
					inst.setVisible(true);
					inst.setExtendedState(Frame.MAXIMIZED_BOTH);
					
				} catch (final Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

}
